DISCUSSION
The
ATSUCreateAndCopyTextLayout function creates a copy of a text layout object that contains the same text layout attribute values, style runs, and soft line breaks.
ATSUCreateAndCopyTextLayout does not copy reference constants or layout caches.